rbac: Add networkpolicies - #341
Conversation
as required by OLM, see e.g. confidential-clusters/operator#161 Signed-off-by: Jakob Naucke <jnaucke@redhat.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds required RBAC for managing Kubernetes NetworkPolicy resources via kubebuilder annotations, ensuring the operator bundle satisfies OLM’s network policy RBAC requirement. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Consider whether the operator needs read access (get/list/watch) to NetworkPolicy resources as well as write access, for consistency with other RBAC entries and to avoid reconcile failures when inspecting existing policies.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider whether the operator needs read access (get/list/watch) to NetworkPolicy resources as well as write access, for consistency with other RBAC entries and to avoid reconcile failures when inspecting existing policies.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
Sourcery-ai commented: "Consider whether the operator needs ... access to NetworkPolicy" I do not know if we need it or not. It may be desired in the future to limit access to the services (limit write access to Trustee) and setup a restrictive policy. |
uril
left a comment
There was a problem hiding this comment.
Looks good to me, with a comment above
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Jakob-Naucke, uril The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
cfeb21a
into
trusted-execution-clusters:main
as required by OLM, see e.g. confidential-clusters/operator#161:
Forward-port of #339. Tested on confidential-clusters/operator#163.
Summary by Sourcery
Enhancements: